<?php slot('article') ?>
<div class="whitepage">
	<span class="txtstyle4"><?php echo $node['title'] ?></span>

	<?php foreach($pager->getResults() as $gallery): ?>
	<?php $link = $bannersHelper->linkIframe($gallery['id']); ?>
	<div class="wp_box">
		<div class="wp_pic"><a class="iframe" href="<?php echo $link ?>">
			<img height="150" width="247" alt="" src="<?php echo @myPicture::getInstance($gallery->Banners[0]['file'])->thumbnail(247,150,'center')->url()?>"></a>
		</div>
		<div class="wp_text">
			<p><a class="iframe" href="<?php echo $link ?>"><?php echo $gallery['name'] ?></a></p>
			<p>&nbsp;</p>
			<p><?php echo $gallery['description'] ?></p>
		</div>
	</div>
	<?php endforeach; ?>

	<div class="wp_pages">
	  <table border="0" align="center" width="498" style="float: left;">
		<tbody><tr>
		  <td style="text-align: center;">
			  <a href="
				 <?php if($pager->getPage() > 1): ?>
				 <?php include_component('linker', 'articleLinkBuilder', array('node' => $node,'page' => $pager->getPage()-1)) ?>
				 <?php else: ?>
				 #
				 <?php endif; ?>
				 ">&lt;</a>
			  <?php for($i = 1; $i <= $pager->getLastPage(); ++$i): ?>
				<a href="<?php include_component('linker', 'articleLinkBuilder', array('node' => $node,'page' => $i)) ?>" class="<?php if($pager->getPage() == $i): ?>active<?php endif; ?>"><?php echo $i ?></a>
			  <?php endfor; ?>
			  <a href="
				 <?php if($pager->getPage() < $pager->getLastPage()): ?>
				 <?php include_component('linker', 'articleLinkBuilder', array('node' => $node,'page' => $pager->getPage()+1)) ?>
				 <?php else: ?>
				 #
				 <?php endif; ?>
				 ">&gt;</a>
		  </td>
		</tr>
	  </tbody></table>
	</div>
</div>

<?php use_javascript('/js/colorbox/jquery.colorbox-min.js') ?>
<?php use_stylesheet('/anima/colorbox/colorbox.css')?>
<script type="text/javascript">
$(".iframe").colorbox({width:"819px", height:"565px", iframe:true});
</script>
<?php end_slot() ?>